package com.changyue.bleHelper;

import com.changyue.util.EmptyUtil;

import cn.com.heaton.blelibrary.ble.Ble;
import cn.com.heaton.blelibrary.ble.model.BleDevice;

public class BLEConnector {

    public static String getBLEName(Ble<BleDevice> ble) {
        if (EmptyUtil.isNotEmpty(ble.getConnectedDevices())) {
            BleDevice bleDevice = ble.getConnectedDevices().get(0);
            return bleDevice.getBleName();
        } else {
            return "未连接";
        }
    }



}
